public class Test {
    public static void func(int[] array) throws NullPointerException,CloneNotSupportedException {
        if(array == null) {
            throw new NullPointerException("空指针异常...");
        }
        System.out.println("array != null");
    }
    public static void main(String[] args) throws NullPointerException,CloneNotSupportedException {
        //int[] array = new int[]{1,2,3,4};
        //int[] array = {1,2,3,4,5};
        int[] array = null;
        func(array);
    }
}
